<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>半透明边框</title>
  <style>
    body {
      background-image: url(../../13轮播图/img/01.jpg);
    }
    div {
      width: 300px;
      height: 300px;
      margin: 0 auto;

      /* 半透明边框
        边框设置半透明色
        如果设置了背景，那么边框会被背景内容填充为不透明，使用 background-clip: padding-box; 可校正
       */
      border: 50px dashed rgba(189, 113, 21, 0.2);
      /* background: red; */
      background-image: url(../../13轮播图/img/01.jpg);
      /* background-clip: padding-box;    */
    }
  </style>
</head>
<body>
  <div>
    <p>
      我是中国人
    </p>
  </div>
</body>
</html>